#ifndef __BASIC_HTTP_H__
#define __BASIC_HTTP_H__

#include <basic/misc.h>

__BEGIN_DECLS

/*
 * url encode
 */
extern char *   /* 输出字串，即url_enc */
url_encode(
        char *url,              /* [IN] 源字串 */
        char *url_enc           /* [OUT] 输出字串 */
        );

/*
 * url decode
 */
extern char *   /* 输出字串，即url */
url_decode(
        char *url_enc,          /* [IN] 源字串 */
        char *url               /* [OUT] 输出字串 */
        );

__END_DECLS

#endif
